package com.fh.fruit.service.count.impl;

import com.fh.dao.DaoSupport;
import com.fh.entity.Page;
import com.fh.fruit.service.count.CountManager;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author joe
 */
@Service("CountManager")
public class CountService implements CountManager {
	
    @Resource(name = "daoSupport")
    private DaoSupport dao;

	@SuppressWarnings("unchecked")
	
	public List<Map<String, Object>> SanNongGoodsCount(Page page) throws Exception {
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.SanNongGoodsCount", page);
	}

	public List<Map<String, Object>> SanNongAllCount(Page page) throws Exception {
		// TODO Auto-generated method stub
		return  (List<Map<String, Object>>) dao.findForMap("SanNongMapper.SanNongAllCount", page);
	}

	public List<Map<String, Object>> SanNongTickerCount(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.SanNongTickerCount", page);
	}

	public List<Map<String, Object>> SanNongOtherCount(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.SanNongOtherCount", page);
	}

	public List<Map<String, Object>> getSanNongSaleslistPage(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.getSanNongSaleslistPage", page);
	}

	public List<Map<String, Object>> getSanNongRewardlistPage(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.getSanNongRewardlistPage", page);
	}

	@Override
	public List<Map<String, Object>> SanNongGoodsSalesCount(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.SanNongGoodsSalesCount", page);
	}

	@Override
	public List<Map<String, Object>> getSanNongRewardTickerlistPage(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.getSanNongRewardTickerlistPage", page);
	}

	@Override
	public List<Map<String, Object>> SanNongOtherAllCount(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.SanNongOtherAllCount", page);
	}

	@Override
	public List<Map<String, Object>> sellAllCount(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.sellAllCount", page);
	}

	@Override
	public List<Map<String, Object>> sellAllCountlistPage(Page page) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map<String, Object>>) dao.findForList("SanNongMapper.sellAllCountlistPage", page);
	}

  
}
